package com.wzh.example.proxy;

/**
 * @Author zh wang
 * @Create 2025/4/29 8:34
 */
public class UserServiceProxy2{
    private UserService userService;
    public UserServiceProxy2(UserService userService) {
        this.userService = userService;
    }
    public void save() {
        System.out.println("代理：before save");
        userService.save();
        System.out.println("代理：after save");
    }
}
